<template>
  <div class="card-group-title" :style="{ 'text-align': align.defaultValue }">
    {{ displayName.defaultValue }}
  </div>
</template>

<script lang="ts">
import { defineComponent, computed } from 'vue';

export default defineComponent({
  name: 'CardGroupTitle',
  props: {
    mode: {
      type: String,
      default: '',
    },
    card: {
      type: Object as any,
      default: () => ({}),
    },
    curBizObject: {
      type: Object as any,
      default: () => ({}),
    },
  },
  setup(props, context) {
    const displayName = computed(() => props.card.controls.displayName);
    const align = computed(() => props.card.controls.alignType);

    return {
      displayName,
      align,
    };
  },
});
</script>

<style lang="less" scoped>
.card-group-title {
  font-size: 16px;
  font-weight: 600;
}
</style>
